#!/bin/sh

logfile=(public main hxmt user asg argo lhaaso wcda besfs3)
for data in ${logfile[@]}
do
	if [ ! -f  /var/log/eos/fuse/fuse.${data}.log ];then
		continue
	fi
	size=$(ls -l /var/log/eos/fuse/fuse.${data}.log |awk '{print $5}')
	if [ $size -gt 200000000 ];then
    		echo > /var/log/eos/fuse/fuse.${data}.log
	fi

	if [ ! -f  /var/log/eos/fusex/fuse.${data}.log ];then
		continue
	fi
	size=$(ls -l /var/log/eos/fusex/fuse.${data}.log |awk '{print $5}')
	if [ $size -gt 200000000 ];then
    		echo > /var/log/eos/fusex/fuse.${data}.log
	fi
done
